package com.cn.wanxi.model;

import com.cn.wanxi.Child;

public class UserModel {
    private int age;

    public int getAge() {
        return age;
    }

    @Override
    public String toString() {
        return "UserModel{" +
                "age=" + age +
                '}';
    }

    public void setAge(int age) {
        if (age > 150) {
            age = 150;
        }
        if (age < 0) {
            age = 0;
        }
        this.age = age;
    }

    public static void main(String[] args) {
    }
}
